package cn.sciento.farm.devicemanager.common.constant;

public interface AlarmConstant {

     String CONTENT_REGES = "[0-9]*(#[0-9]+)*";

     int TYPE_ON = 1;

     int TYPE_OFF = 2;

     int TYPE_GREATER = 3;

     int TYPE_LESS = 4;

     int TYPE_LESS_GREATER = 5;

     int TYPE_GREATER_LESS = 6;

     String TEMPLATE_ON = "开关ON";

     String TEMPLATE_OFF = "开关OFF";

     String TEMPLATE_GREATER = "数值大于%s";

     String TEMPLATE_LESS = "数值小于%s";

     String TEMPLATE_LESS_GREATER = "数值小于%s大于%d";

     String TEMPLATE_GREATER_LESS = "数值大于%s小于%d";

     String SERVICE_PREFIX = "TriggerSendService";

     String WEIXIN = "weixin";

     String EMAIL = "email";

     String SMS = "sms";

     // 警告日志类型
     String LOG_RESTORE = "restore";

     String LOG_ALARM = "alarm";


     // 发送警告的策略
     String SEND_STRATEGY_JUST = "just";

     String SEND_STRATEGY_TIME = "time";

     String SMS_MESSAGE_OK = "OK";
     String SMS_MESSAGE_RESIDUAL = "账户余额不足";

    /**
     * 一个手机号每天可发送短信数量
     */
    Integer PHONE_DAY_SEND = 20;
}
